<template>
	<view>
		<u-tabbar 
			@change="ChangBar" 
			:fixed="true" 
			:placeholder="true"
			:safeAreaInsetBottom="true"
		>
			<!-- <u-tabbar-item v-for="(item,index) in list" :text="item.text" :icon="item.iconPath" :key="index"></u-tabbar-item> -->
		</u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						pagePath: "pages/index/index",
						iconPath: "home",
						text: '首页',
					},
					{
						pagePath: "pages/index/index",
						iconPath: "photo",
						text: '放映厅',
					},
					{
						pagePath: "pages/release/release",
						iconPath: "https://cdn.uviewui.com/uview/common/min_button.png",
						text: '发布',
						midButton: true,
						customIcon: false,
					},
					{
						"pagePath": "pages/live/live",
						iconPath: "play-right",
						selectedIconPath: "play-right-fill",
						text: '直播',
						customIcon: false,
					},
					{
						"pagePath": "pages/user/user",
						"iconPath": "account",
						"selectedIconPath": "account-fill",
						"text": '我的',
						// "count": 23,
						"isDot": false,
						"customIcon": false,
					},
				],
				current: 0,
				value6: 0
			}
		},
		methods: {
			ChangBar(e) {
				uni.switchTab({
					url: '/' + this.list[e].pagePath
				})
			}
		}
	}
</script>

<style>
</style>